package ace.oauth2.provider.common.properties;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.concurrent.TimeUnit;

/**
 * @author Caspar
 * @contract 279397942@qq.com
 * @create 2020/1/3 15:21
 * @description oauth2 config property
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OAuth2TokenProperty {
    private Boolean supportRefreshToken = true;
    private Boolean reuseRefreshToken = true;
    private Integer accessTokenValiditySeconds = (int) TimeUnit.HOURS.toSeconds(2);
    private Integer refreshTokenValiditySeconds = (int) TimeUnit.DAYS.toSeconds(30);
    private String jwtSigningKey = "1234!@#$";
}
